#include <Windows.h>
#include "base/dlldefines.h"
#include "uiwin/app.h"
#include "uiwin/window.h"

class MainWindow : public uiwin::MainWindowBase
{
};


int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, 
	LPSTR lpCmdLine, int nShowCmd)
{
	uiwin::App::Create(hInstance, hPrevInstance, lpCmdLine, nShowCmd);

	MainWindow* window = new MainWindow();
	window->Create(NULL, _T("QQ2011"), UI_WNDSTYLE_FRAME, WS_EX_STATICEDGE | WS_EX_APPWINDOW, 0, 0, 800, 600, FALSE);
	window->Center();
	window->Show();

	uiwin::App::app()->MessageLoop();

	uiwin::App::Delete();

	return 0;
}